/**
 * Author:   e20160504
 * Date:     2018/6/1 10:05
 * Description:
 */
package com.kevin.demo.controller.base;

import com.kevin.demo.entity.girl.Girl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    //@Value("${cupSize}")
    //private String cupSize;
    //
    //@Value("${content}")
    //private String content;

    @Autowired
    private Girl girl;

    @GetMapping(value = {"/hello","/hi"})
    public String say(@RequestParam(value = "content",required = false,defaultValue = "hello kevin") String content){
        return "hello spring boot " + girl.getCupSize() + " " + girl.getAge() + content;
    }
}
